package com.sky.vo;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

@Data
public class UserLoginVo implements Serializable {

    @NotEmpty(message = "用户名不能为空")
    @Length(min = 6, max = 18, message = "用户名长度在6-18之间")
    private String username;

    @NotEmpty(message = "密码不能为空")
    @Length(min = 6, max = 18, message = "密码长度在6-18之间")
    private String password;

    @NotEmpty(message = "验证码不能为空")
    private String code;
}
